<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<view class="text-area">
			<text class="title">xxxx</text>
		</view>
		<u-button type="primary">主要按钮333</u-button>
		<view class="test-wrap">
			<test></test>
		</view>
	</view>
</template>

<script>
	import Test from '@/components/Test/index.vue'
	export default {
		components: { Test },
		data() {
			return {
				userInfo: null
			}
		},
		onLoad() {
			uni.login({
				scopes: 'auth_base',
				success: res => {
					if (res.authCode) {
						// 发送服务器 获取支付宝用户 user_id 
						console.log('静默登录成功', res)
					}
				}
			})
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: $uni-color-warning;
	}
	
	.test-wrap {
		height: 300rpx;
	}
</style>
